import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/read',
  },
  {
    path: '/read',
    name: 'read',
    component: ()=>import('@/views/read/Read.vue'),
    meta:{
      showFooter:true
    }
  },
  {
    path: '/movie',
    name: 'movie',
    component: () => import('@/views/movie/Movie.vue'),
    meta:{
      showFooter:true
    }
  },
  {
    path:'/music',
    name:'music',
    component:()=>import('@/views/music/Music.vue'),
    meta:{
      showFooter:true
    }
  },
  {
    path:'/profile',
    name:'profile',
    component:()=>import('@/views/profile/Profile.vue'),
    meta:{
      showFooter:true
    }
  },
  {
    path:'/readdetail',
    name:'readdetail',
    component:()=>import('@/views/read/ReadDetail.vue')
  },
  {
    path:'/moviedetail',
    name:'moviedetail',
    component:()=>import('@/views/movie/MovieDetail.vue')
  },
  {
    path:'/cinema/:type',
    name:'cinema',
    component:()=>import('@/views/movie/MovieMore.vue')
  },
  {
    path:'/playlist',
    component:()=>import('@/views/music/PlayList.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
